package com.hue.springbootmybatis.service.impl;

import com.hue.springbootmybatis.dao.UserDao;
import com.hue.springbootmybatis.domain.Page;
import com.hue.springbootmybatis.domain.User;
import com.hue.springbootmybatis.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 姚凤桥
 * @Date: 2022/5/13 21:34
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> getAll() {
        return userDao.getAll();
    }

    @Override
    public List<User> list(Page page) {
        return userDao.list(page);
    }

    @Override
    public User getById(String id) {
        return userDao.getById(id,"张哈哈");
    }
}
